package cn.sinata.wanglin.net.model.util;

public final class ResultException extends Exception {
    private String code;

    public ResultException(String code, String msg) {
        super(msg);
        this.code = code;
    }

    public ResultException(String code, String msg, Throwable cause) {
        super(msg, cause);
        this.code = code;
    }


    public ResultException(String code, Throwable cause) {
        super(cause);
        this.code = code;
    }

    public String getCode() {
        return code;
    }
}